#include "Global.h"
#include "..\..\User\config.h"


STATE_STATUS eFsm_Cavity_Status;
FSM_CAVITY_STATE eFsmCur_Cavity_State;
FSM_CAVITY_STATE eFsmNext_Cavity_State;
FSM_CAVITY_STATE eFsmLast_Cavity_State;

CATIVY_CB sCativy_CB;
    

void f_FSM_Cavity_StateJump(void)
{
    if(eFsmCur_Cavity_State!=eFsmNext_Cavity_State&&eFsm_Cavity_Status==STATUS_QUITE)
    {
        eFsmLast_Cavity_State=eFsmCur_Cavity_State;
        eFsmCur_Cavity_State=eFsmNext_Cavity_State;

        eFsm_Cavity_Status=STATUS_ENTER;
    }
}
void f_FSM_CAVITY_StateSet(FSM_CAVITY_STATE eSetState)
{
    if(eFsmCur_Cavity_State!=eSetState&&eFsmNext_Cavity_State!=eSetState&&eFsm_Cavity_Status==STATUS_RUN)
    {
        eFsmNext_Cavity_State=eSetState;
        eFsm_Cavity_Status=STATUS_QUITE;
    }   
		
	f_Flow_FsmCavity_Routine();
}

void f_FSM_CAVITY_Init(void)
{
    eFsm_Cavity_Status = STATUS_ENTER;
    eFsmCur_Cavity_State = FSM_CAVITY_IDLE;
    eFsmCur_Cavity_State = FSM_CAVITY_IDLE;
    eFsmCur_Cavity_State = FSM_CAVITY_IDLE;
}


